//
//  NWPicManageRequest.m
//  KuWoCan
//
//  Created by hwd on 17/4/10.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "NWPicManageRequest.h"

@implementation NWPicManageRequest

//修改/添加全部照片
- (void)startRequestChangeOrAddAllPicWithDic:(NSMutableDictionary *)dic
{
    _showError = YES;
    _showLoading = YES;
    _path = NWPicManage_CtrAll_Path;
    _params = dic;
    [self startPost];
}

//删除单张照片
- (void)startRequestDeleteOnePicWithImgs:(NSString *)imgs
{
    _showError = YES;
    _showLoading = YES;
    _path = NWPicManage_DeleteOne_Path;
    NSMutableDictionary *dic = [[NSMutableDictionary alloc]initWithDictionary:@{@"imgs":imgs}];
    _params = dic;
    [self startGet];
}


//查询图片
- (void)startRequestQueryPicWithProcessId:(NSString *)processId pageNo:(NSString *)pageNo pageSize:(NSString *)pageSize type:(NSString *)type
{
    _showError = YES;
    _showLoading = YES;
    
    self.isNotDataStr = YES;
    _path = NWPicManage_QueryAll_Path;
    NSMutableDictionary *dic = [[NSMutableDictionary alloc]initWithDictionary:@{@"processId":processId,@"pageNo":pageNo,@"pageSize":pageSize,@"type":type}];
    _params = dic;
    [self startPost];
}


//单个添加图片
- (void)startRequestAddOnePicWithDic:(NSMutableDictionary *)dic
{
    _showError = YES;
    _showLoading = YES;
    _path = NWPicManage_AddOne_Path;
    _params = dic;
    [self startPost];
}




@end
